package com.bigfreakindeals.Activities;

import java.util.ArrayList;

import com.bigfreakindeals.R;
import com.bigfreakindeals.Application.ApplicationEx;
import com.bigfreakindeals.Common.Constant;
import com.bigfreakindeals.Controller.ClosestSchoolListener;


import android.app.Activity;
import android.app.ActivityGroup;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnKeyListener;
import android.view.View.OnTouchListener;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class BaseActivity extends ActivityGroup implements OnClickListener,
		OnTouchListener, OnKeyListener {
	
	    

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

	}
	public void launchBrowser(String url){
		Log.i("LOGIN-parent:launche ", url);

       	
		Intent intent = new Intent(this, BrowserActivity.class);
		intent.setData((Uri.parse(url)));
		intent.putExtra(Constant.TAG_BROWSERTYPE, (byte)Constant.type_FORGETPASS);
		
		
		startActivity(intent);
	
	//	"http://www.bigfncoupons.com/univ-washington/users/forgotpassword");
	}
	
	
	@Override
	public boolean onKey(View arg0, int arg1, KeyEvent arg2) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		return false;
	}

	public void callActivedeals(Context packageContext,Class<?> cls){
		
		Intent activedealspage = new Intent(packageContext, cls);
		startActivity(activedealspage);
	
	}
	
	@Override
	public void onClick(View v) {
	

	}
	
}
